package com.kpx.app.wigdet;

import android.content.Context;
import android.content.DialogInterface;

/**
 * 对话框工厂,用于显示对话框
 *
 * @author Scott Smith  @Date 2016年04月16/4/15日 15:49
 */
public abstract class DialogFactory {
    public static DialogFactory newInstance(Context context) {
        return new DialogFactoryImpl(context);
    }

    public abstract void showAlertDialog(String text);

    public abstract void showConfirmDialog(String negativeButtonText, String positiveButtonText, String text, DialogInterface.OnClickListener onClickListener);

    public abstract void showConfirmDialog(String negativeButtonText, String positiveButtonText, String title, String text, DialogInterface.OnClickListener onClickListener);
    public abstract void showConfirmDialog(String negativeButtonText, String positiveButtonText, String title, String text, DialogInterface.OnClickListener onClickListener,boolean canCancel);

    public abstract void showAddressMentionDialog(String negativeButtonText, String positiveButtonText, String title, AddressMentionDialog.OnNegativeButtonClickListener onNegativeButtonClickListener);

    public abstract void showAMentionDialog(String negativeButtonText, String positiveButtonText, String title, String mg, AMentionDialog.OnNegativeButtonClickListener  onNegativeButtonClickListener);

    public abstract void showWarningDialog(String text);

    public abstract void showLoadingDialog(String text);

    public abstract void dismissDialog();
    public abstract boolean isDialogShow();
}
